package InnerClass.InnerClassDemo002;

/**
 * ClassName:Car
 * Package:InnerClass.InnerClassDemo002
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/26-0:17
 * @Version:v1.0
 */
public class Car {
    String carName;
    int carAge;
    String carColor;

    public void show(Car this) {
        System.out.println(this.carName);
//        System.out.println(engineName);
        Engine e = new Engine();
        System.out.println(e.engineName);
    }

    class Engine {
        String engineName;
        int engineAge;

        public void show() {
            System.out.println(engineName);
            System.out.println(carName);
        }
    }
}
